﻿<Gui:ViewControl x:Class="Outcoder.Calcium.Modules.History.HistoryView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Gui="clr-namespace:Outcoder.Calcium.Gui"
    xmlns:Module="clr-namespace:Outcoder.Calcium.Modules.History"	
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	mc:Ignorable="d"
	d:DesignHeight="300" d:DesignWidth="300"
	DataContext="{Binding ViewModel, RelativeSource={RelativeSource Self}}">
	<Gui:ViewControl.ViewModel>
		<Module:HistoryViewModel />
	</Gui:ViewControl.ViewModel>
	<DockPanel x:Name="ContentPanel">
		<ListView HorizontalContentAlignment="Stretch" ItemsSource="{Binding Tasks}"
				  FontSize="8">
			<ListView.View>
				<GridView>
					<GridViewColumn Header="Description" 
									Width="100">
						<GridViewColumn.CellTemplate>
							<DataTemplate>
								<TextBlock Text="{Binding Path=DescriptionForUser}" 
										   MouseLeftButtonUp="TextBlock_MouseLeftButtonUp" />
							</DataTemplate>
						</GridViewColumn.CellTemplate>
					</GridViewColumn>
					<GridViewColumn Header="Occured" DisplayMemberBinding="{Binding Path=OccuredAt}" Width="80"/>
				</GridView>
			</ListView.View>
		</ListView>
	</DockPanel>
</Gui:ViewControl>
